\hypertarget{classduye_1_1_file_stream}{\section{duye\-:\-:File\-Stream Class Reference}
\label{classduye_1_1_file_stream}\index{duye\-::\-File\-Stream@{duye\-::\-File\-Stream}}
}


configuration manager class  




{\ttfamily \#include $<$duye\-\_\-file\-\_\-stream.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classduye_1_1_file_stream_aff039c162e700ec691ec90fee8bcf935}{init\-Stream} (const std\-::string \&path)
\item 
bool \hyperlink{classduye_1_1_file_stream_a2dd30f9bc0e3a1c924942f87c9fca669}{write\-Stream} (const int8 $\ast$data, const uint32 len)
\item 
int64 \hyperlink{classduye_1_1_file_stream_a5be2ab450157a327e43f4bae03fdcc21}{read\-Stream} (int8 $\ast$buffer, const uint32 size, const int64 offset=-\/1)
\item 
const \hyperlink{classduye_1_1_file_attr}{File\-Attr} \& \hyperlink{classduye_1_1_file_stream_ab1656895d840aa90d1c61f8df96186ea}{file\-Attr} () const 
\item 
bool \hyperlink{classduye_1_1_file_stream_a9ad538b05010f32b35914e08521f0b3a}{flush} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
configuration manager class 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_file_stream_ab1656895d840aa90d1c61f8df96186ea}{\index{duye\-::\-File\-Stream@{duye\-::\-File\-Stream}!file\-Attr@{file\-Attr}}
\index{file\-Attr@{file\-Attr}!duye::FileStream@{duye\-::\-File\-Stream}}
\subsubsection[{file\-Attr}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf File\-Attr}\& duye\-::\-File\-Stream\-::file\-Attr (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classduye_1_1_file_stream_ab1656895d840aa90d1c61f8df96186ea}
get file attribute \begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\hypertarget{classduye_1_1_file_stream_a9ad538b05010f32b35914e08521f0b3a}{\index{duye\-::\-File\-Stream@{duye\-::\-File\-Stream}!flush@{flush}}
\index{flush@{flush}!duye::FileStream@{duye\-::\-File\-Stream}}
\subsubsection[{flush}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-File\-Stream\-::flush (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_file_stream_a9ad538b05010f32b35914e08521f0b3a}
write cache data to device \begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\hypertarget{classduye_1_1_file_stream_aff039c162e700ec691ec90fee8bcf935}{\index{duye\-::\-File\-Stream@{duye\-::\-File\-Stream}!init\-Stream@{init\-Stream}}
\index{init\-Stream@{init\-Stream}!duye::FileStream@{duye\-::\-File\-Stream}}
\subsubsection[{init\-Stream}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-File\-Stream\-::init\-Stream (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{path}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_file_stream_aff039c162e700ec691ec90fee8bcf935}
init 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em path} & \-: file full path \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\hypertarget{classduye_1_1_file_stream_a5be2ab450157a327e43f4bae03fdcc21}{\index{duye\-::\-File\-Stream@{duye\-::\-File\-Stream}!read\-Stream@{read\-Stream}}
\index{read\-Stream@{read\-Stream}!duye::FileStream@{duye\-::\-File\-Stream}}
\subsubsection[{read\-Stream}]{\setlength{\rightskip}{0pt plus 5cm}int64 duye\-::\-File\-Stream\-::read\-Stream (
\begin{DoxyParamCaption}
\item[{int8 $\ast$}]{buffer, }
\item[{const uint32}]{size, }
\item[{const int64}]{offset = {\ttfamily -\/1}}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_file_stream_a5be2ab450157a327e43f4bae03fdcc21}
push data to file back 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em buffer} & \-: out buffer \\
\hline
\mbox{\tt in}  & {\em size} & \-: out buffer size \\
\hline
\mbox{\tt in}  & {\em offset} & \-: read offset from file begin. default is -\/1, indicate read current file position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pop size. on -\/1, error. on 0, reach end. on $>$ 0, pop size. 
\end{DoxyReturn}
\hypertarget{classduye_1_1_file_stream_a2dd30f9bc0e3a1c924942f87c9fca669}{\index{duye\-::\-File\-Stream@{duye\-::\-File\-Stream}!write\-Stream@{write\-Stream}}
\index{write\-Stream@{write\-Stream}!duye::FileStream@{duye\-::\-File\-Stream}}
\subsubsection[{write\-Stream}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-File\-Stream\-::write\-Stream (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{data, }
\item[{const uint32}]{len}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_file_stream_a2dd30f9bc0e3a1c924942f87c9fca669}
write data to file back 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em data} & \-: in data \\
\hline
\mbox{\tt in}  & {\em len} & \-: in data size \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/public/\hyperlink{duye__file__stream_8h}{duye\-\_\-file\-\_\-stream.\-h}\end{DoxyCompactItemize}
